import 'package:medito/constants/constants.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

//ignore: prefer-match-file-name
class EmptyStateWidget extends StatelessWidget {
  final String? message;
  final SvgPicture? image;

  const EmptyStateWidget({super.key, this.message, this.image});

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.start,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Container(
          padding: const EdgeInsets.fromLTRB(16, 24, 16, 24),
          child: Text(
            message ?? '',
            textAlign: TextAlign.start,
            style: meditoTextTheme(context).titleMedium,
          ),
        ),
        const Divider(
          color: ColorConstants.softGrey,
        ),
        Expanded(child: Center(child: image)),
      ],
    );
  }
}
